package com.haoxuer.adminsimple.member.controller.admin;


import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Scope("prototype")
@Controller
public class ReportPageAction {

    @RequestMapping("/admin/report/{view}")
    public String page(@PathVariable(value = "view") String view) {
        if (StringUtils.isEmpty(view)) {
            view = "index";
        }
        return "admin/report/" + view;
    }

}
